package com.iot.inclinometer.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public class MapUtil {
    public static Map objToMap(Object result){
        String jsonString = JSON.toJSONString(result);
        Map<String,Object> map = JSONObject.parseObject(jsonString);
        return map;
    }
}
